<?php //include_stylesheets_for_form($form) ?>
<?php //include_javascripts_for_form($form) ?>
<?php //use_helper('Javascript')?>
<?php use_stylesheet('/sfFormExtraPlugin/css/jquery.autocompleter.css')?>
<?php use_javascript('/sfFormExtraPlugin/js/jquery.autocompleter.js')?>


<div class="sf_admin_form">
  <?php echo form_tag_for($form, '@ordenesservicio') ?>
    <?php echo $form->renderHiddenFields() ?>

    <?php if ($form->hasGlobalErrors()): ?>
      <?php echo $form->renderGlobalErrors() ?>
    <?php endif; ?>

    <?php foreach ($configuration->getFormFields($form, $form->isNew() ? 'new' : 'edit') as $fieldset => $fields): ?>
      <?php include_partial('ingresoReparaciones/form_fieldset', array('ordenesservicio' => $ordenesservicio, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset)) ?>
    <?php endforeach; ?>
    <?php if (!$form->isNew()):?>
       <div id ="AjaxActualizar">
            <?php //include_partial('ingresoReparaciones/detallesRep', array('Detalles' => $Detalles,'cantidad'=> $ordenesservicio->getCantidadIngresos(),'helper' => $helper))?>
       </div>
     <?php endif;?>
    <?php include_partial('ingresoReparaciones/form_actions', array('ordenesservicio' => $ordenesservicio, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper)) ?>
  </form>
</div>
